<div style="width:380px;height:60px;border: 1px solid #eee;text-align: center;float: left">

    <div style="margin-bottom: 3px">
        <span style="font-size: 16px">计算公式</span>
    </div>
    <input id="calculateOtherFreightPrice2" class="easyui-numberbox" data-options="precision:3,prompt:'总价',onChange:calculateOtherChargesCostOnChange2"
           style="width: 60px">x
    <input id="calculateOtherXiShu2" class="easyui-numberbox" data-options="precision:3,onChange:calculateOtherChargesCostOnChange2" style="width:60px">%
</div>

<script>
    function calculateOtherChargesCostOnChange(a,oldValue) {
        a=a?a:0;
        var b= Number($('#calculateOtherXiShu').numberbox('getValue'))
        //计算:授权费\顾问\其他
        $("#other_charges").numberbox("setValue",a*b/100);
    }
    function calculateOtherChargesCostOnChange1(b,oldValue) {
        var a= $('#calculateOtherFreightPrice').numberbox('getValue')
        a=a?a:0;
        //计算:授权费\顾问\其他
        $("#other_charges").numberbox("setValue",a*b/100);
    }
    function calculateOtherChargesCostOnChange2() {
        var b= Number($('#calculateOtherXiShu2').numberbox('getValue'))
        var a= $('#calculateOtherFreightPrice2').numberbox('getValue')
        a=a?a:0;
        //计算:授权费\顾问\其他
        $("#other_charges").numberbox("setValue",a*(b/100));
    }

</script>